package com.qd.pay.repository;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cdqidi.db.BaseService;
import com.qd.pay.mapper.OrderRefundMapper;
import com.qd.pay.model.OrderRefund;
import org.springframework.stereotype.Repository;

/**
 * @author sjk
 */
@Repository
public class OrderRefundRepository extends BaseService<OrderRefundMapper, OrderRefund> {
    public boolean isExists(String rid) {
        return getBaseMapper().exists(new QueryWrapper<OrderRefund>().eq("rid", rid));
    }
}